<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],

use think\Route;

<<<<<<< HEAD
//个人中心 首页 收藏

=======
//个人中心 首页
>>>>>>> 2d79cfa8789da2f2a423d006d49f501a7ccfc9c7
Route::get('/personal/:id','personal/Index/delete');
Route::get('/personal','personal/Index/index');
//关注
Route::post('/personal/create/:id','personal/Index/create');
Route::get('/follow/:id','personal/Follow/delete');
Route::get('/follow','personal/Follow/index');
//文章
Route::get('/article/:id','personal/Article/create');
Route::post('/article/demo','personal/Article/demo');
Route::get('/article','personal/Article/index');
//信息
Route::post('/message/:id','personal/Message/send');
Route::post('/message/update','personal/Message/update');
Route::get('/message','personal/Message/index');
//评论
Route::get('/discuss/del/:id','personal/Discuss/del');
Route::get('/discuss/read/:id','personal/Discuss/read');
Route::get('/discuss/:id','personal/Discuss/delete');
Route::get('/discuss','personal/Discuss/index');
Route::post('/discuss/update','personal/Discuss/update');


// Route::post('/add','index/Index/add');
// 主页
Route::get('/index','index/Index/index');
Route::resource('add','index/Index');
Route::post('/sign','index/Index/sign');
Route::get('/log','index/Index/log');

//文章列表
Route::get('/focus/:id','index/Focus/read',[],['id'=>'\d']);
Route::get('/focus/:id','index/Focus/read');
Route::get('/focus','index/Focus/index');


//分类
Route::get('/media/:id','index/Media/read',[],['id'=>'\d']);
Route::get('/asd','index/Index/asd');//ajax
//订阅
Route::post('/mediaz/:cid','index/Media/sub');//ajax
//取消订阅
Route::get('/medi/:cid','index/Media/cancel');
//更多
Route::get('/media/[:uid]','index/Media/index');
//个人栏目
Route::get('/attention/:buid','index/Attention/index');
//文章
Route::get('/articles/:aid','index/Article/index');
//关注
Route::get('/Articlez/:buid','index/Article/follow');//ajax
//取消关注
Route::get('/Articleq/:buid','index/Article/cancel');//ajax
Route::get('/personal/:id','personal/Index/delete');
Route::get('/personal','personal/Index/index');

//轮播图
 Route::get('/Carousel/[:aid]','index/Carousel/index');
Route::get('/addCarousel','index/Carousel/add');
Route::get('/addCarou/:aid','index/Carousel/adds');
Route::get('/addCar/:aid','index/Carousel/delete');
Route::get('/addCarf/:id','index/Carousel/seal');
Route::get('/addCarfe/:id','index/Carousel/seall');
Route::get('/addplay/:id','index/Carousel/play');
Route::get('/addplayn/:id','index/Carousel/playn');

//广告

Route::get('Adverti','index/Adverti/index');
Route::get('Advertiadd','index/Adverti/add');
Route::get('Advertidelect/:id','index/Adverti/delect');
Route::get('Advertishang/:id','index/Adverti/shang');
Route::get('Advertixia/:id','index/Adverti/xia');
//音乐
Route::get('Music','index/Music/index');

Route::get('Musicadd','index/Music/add');
Route::get('Musicadddelect/:id','index/Music/delect');
Route::get('Musicaddshang/:id','index/Music/shang');
Route::get('Musicaddxia/:id','index/Music/xia');

//游戏
Route::get('Game','index/Game/index');
Route::get('Gameadd','index/Game/add');
Route::get('Gameshang/:id','index/Game/shang');
Route::get('Gamexia/:id','index/Game/xia');
Route::get('Gamedelect/:id','index/Game/delect');
Route::get('Gamegoos/:id','index/Game/gamegoog');
// 天气
Route::get('tian','index/Tianqi/index');

Route::get('Advertiadd','index/Adverti/add');
Route::get('Advertidelect/:id','index/Adverti/delect');

